Integrand size = 30, antiderivative size = 91 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=\frac {(a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{(b f-a g) (f+g x)}+\frac {B (b c-a d) n \log \left (\frac {f+g x}{c+d x}\right )}{(b f-a g) (d f-c g)} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2553, 2351, 31} \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=\frac {(a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{(f+g x) (b f-a g)}+\frac {B n (b c-a d) \log \left (\frac {f+g x}{c+d x}\right )}{(b f-a g) (d f-c g)} \]
[In]
[Out]
Rule 31
Rule 2351
Rule 2553
Rubi steps \begin{align*} \text {integral}& = (b c-a d) \text {Subst}\left (\int \frac {A+B \log \left (e x^n\right )}{(b f-a g+(-d f+c g) x)^2} \, dx,x,\frac {a+b x}{c+d x}\right ) \\ & = \frac {(a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{(b f-a g) (f+g x)}-\frac {(B (b c-a d) n) \text {Subst}\left (\int \frac {1}{b f-a g+(-d f+c g) x} \, dx,x,\frac {a+b x}{c+d x}\right )}{b f-a g} \\ & = \frac {(a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{(b f-a g) (f+g x)}+\frac {B (b c-a d) n \log \left (\frac {f+g x}{c+d x}\right )}{(b f-a g) (d f-c g)} \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.20 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=\frac {-\frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{f+g x}+\frac {B n (b (d f-c g) \log (a+b x)+(-b d f+a d g) \log (c+d x)+(b c-a d) g \log (f+g x))}{(b f-a g) (d f-c g)}}{g} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(363\) vs. \(2(91)=182\).
Time = 3.51 (sec) , antiderivative size = 364, normalized size of antiderivative = 4.00
method | result | size |
parallelrisch | \(\frac {B x \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right ) a b c d \,f^{2} n -B x \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right ) a^{2} c d f g n +B \ln \left (b x +a \right ) x \,a^{2} c d f g \,n^{2}-B \ln \left (b x +a \right ) x a b \,c^{2} f g \,n^{2}-B \ln \left (g x +f \right ) x \,a^{2} c d f g \,n^{2}+B \ln \left (g x +f \right ) x a b \,c^{2} f g \,n^{2}+A x \,a^{2} c^{2} g^{2} n -A x \,a^{2} c d f g n -A x a b \,c^{2} f g n +A x a b c d \,f^{2} n -B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right ) a^{2} c^{2} f g n +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right ) a b \,c^{2} f^{2} n +B \ln \left (b x +a \right ) a^{2} c d \,f^{2} n^{2}-B \ln \left (b x +a \right ) a b \,c^{2} f^{2} n^{2}-B \ln \left (g x +f \right ) a^{2} c d \,f^{2} n^{2}+B \ln \left (g x +f \right ) a b \,c^{2} f^{2} n^{2}}{\left (a g -b f \right ) \left (g x +f \right ) n \left (c g -d f \right ) a c f}\) | \(364\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 294 vs. \(2 (91) = 182\).
Time = 3.14 (sec) , antiderivative size = 294, normalized size of antiderivative = 3.23 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=-\frac {A b d f^{2} + A a c g^{2} - {\left (A b c + A a d\right )} f g + {\left (B b d f^{2} + B a c g^{2} - {\left (B b c + B a d\right )} f g\right )} n \log \left (\frac {b x + a}{d x + c}\right ) - {\left ({\left (B b d f g - B b c g^{2}\right )} n x + {\left (B b d f^{2} - B b c f g\right )} n\right )} \log \left (b x + a\right ) + {\left ({\left (B b d f g - B a d g^{2}\right )} n x + {\left (B b d f^{2} - B a d f g\right )} n\right )} \log \left (d x + c\right ) - {\left ({\left (B b c - B a d\right )} g^{2} n x + {\left (B b c - B a d\right )} f g n\right )} \log \left (g x + f\right ) + {\left (B b d f^{2} + B a c g^{2} - {\left (B b c + B a d\right )} f g\right )} \log \left (e\right )}{b d f^{3} g + a c f g^{3} - {\left (b c + a d\right )} f^{2} g^{2} + {\left (b d f^{2} g^{2} + a c g^{4} - {\left (b c + a d\right )} f g^{3}\right )} x} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.56 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=B n {\left (\frac {b \log \left (b x + a\right )}{b f g - a g^{2}} - \frac {d \log \left (d x + c\right )}{d f g - c g^{2}} + \frac {{\left (b c - a d\right )} \log \left (g x + f\right )}{b d f^{2} + a c g^{2} - {\left (b c + a d\right )} f g}\right )} - \frac {B \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right )}{g^{2} x + f g} - \frac {A}{g^{2} x + f g} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 461 vs. \(2 (91) = 182\).
Time = 0.55 (sec) , antiderivative size = 461, normalized size of antiderivative = 5.07 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx={\left (\frac {{\left (B b^{2} c^{2} n - 2 \, B a b c d n + B a^{2} d^{2} n\right )} \log \left (-b f + \frac {{\left (b x + a\right )} d f}{d x + c} + a g - \frac {{\left (b x + a\right )} c g}{d x + c}\right )}{b d f^{2} - b c f g - a d f g + a c g^{2}} + \frac {{\left (B b^{2} c^{2} n - 2 \, B a b c d n + B a^{2} d^{2} n\right )} \log \left (\frac {b x + a}{d x + c}\right )}{b d f^{2} - \frac {{\left (b x + a\right )} d^{2} f^{2}}{d x + c} - b c f g - a d f g + \frac {2 \, {\left (b x + a\right )} c d f g}{d x + c} + a c g^{2} - \frac {{\left (b x + a\right )} c^{2} g^{2}}{d x + c}} - \frac {{\left (B b^{2} c^{2} n - 2 \, B a b c d n + B a^{2} d^{2} n\right )} \log \left (\frac {b x + a}{d x + c}\right )}{b d f^{2} - b c f g - a d f g + a c g^{2}} + \frac {B b^{2} c^{2} \log \left (e\right ) - 2 \, B a b c d \log \left (e\right ) + B a^{2} d^{2} \log \left (e\right ) + A b^{2} c^{2} - 2 \, A a b c d + A a^{2} d^{2}}{b d f^{2} - \frac {{\left (b x + a\right )} d^{2} f^{2}}{d x + c} - b c f g - a d f g + \frac {2 \, {\left (b x + a\right )} c d f g}{d x + c} + a c g^{2} - \frac {{\left (b x + a\right )} c^{2} g^{2}}{d x + c}}\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )} \]
[In]
[Out]
Time = 1.37 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.54 \[ \int \frac {A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{(f+g x)^2} \, dx=\frac {B\,d\,n\,\ln \left (c+d\,x\right )}{c\,g^2-d\,f\,g}-\frac {\ln \left (f+g\,x\right )\,\left (B\,a\,d\,n-B\,b\,c\,n\right )}{a\,c\,g^2+b\,d\,f^2-a\,d\,f\,g-b\,c\,f\,g}-\frac {B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}{g\,\left (f+g\,x\right )}-\frac {B\,b\,n\,\ln \left (a+b\,x\right )}{a\,g^2-b\,f\,g}-\frac {A}{x\,g^2+f\,g} \]
[In]
[Out]